{%extends "MssaeSeoBundle::layout.html.twig"%}
{%block body%}
<h1>Projet</h1>

<table class="record_properties">
    <tbody>
        <tr>
            <th>Id</th>
            <td>{{ entity.id }}</td>
        </tr>
        <tr>
            <th>Nom</th>
            <td>{{ entity.nom }}</td>
        </tr>
        <tr>
            <th>Url</th>
            <td>{{ entity.url }}</td>
        </tr>
        <tr>
            <th>Client</th>
            <td>{{ entity.client }}</td>
        </tr>
        <tr>
            <th>Commentaire</th>
            <td>{{ entity.commentaire }}</td>
        </tr>
        <tr>
            <th>Create_at</th>
            <td>{{ entity.createat|date('Y-m-d H:i:s') }}</td>
        </tr>
        <tr>
            <th>Statut</th>
            <td>{{ entity.statut }}</td>
        </tr>
    </tbody>
</table>

<ul class="record_actions">
    <li>
        <a href="{{ path('projet', { 'page': 1 }) }}">
            Retour à la liste
        </a>
    </li>
{%if is_granted('ROLE_ADMIN')%}      
    <li>
        <a href="{{ path('projet_new') }}">
            Create a new entry
        </a>
    </li>    
    <li>
        <a href="{{ path('projet_edit', { 'id': entity.id }) }}">
            Edit
        </a>
    </li>
    <li>
        <form action="{{ path('projet_delete', { 'id': entity.id }) }}" method="post">
            {{ form_widget(delete_form) }}
            <button type="submit">Delete</button>
        </form>
    </li>
{%endif%}
</ul>
{%endblock%}